//配置路由配置的数组
import MSite from '@/pages/MSite/MSite'
import Order from '@/pages/Order/Order'
import Search from '@/pages/Search/Search'
import Profile from '@/pages/Profile/Profile'
import Login from '@/pages/Login/Login'
import Shop from '../pages/Shop/Shop.vue'
import ShopGoods from '../pages/Shop/ShopGoods/ShopGoods'
import ShopRatings from '../pages/Shop/ShopRatings/ShopRatings'
import ShopInfo from '../pages/Shop/ShopInfo/ShopInfo'
 export default [
     {
         path:'/msite',
         component:MSite,
         meta:{
             isShowFooter:true
             
         }
     },
     {
        path:'/order',
        component:Order,
        meta:{
            isShowFooter:true
            
        }
    },
    {
        path:'/search',
        component:Search,
        meta:{
            isShowFooter:true
            
        }
    },
    {
        path:'/profile',
        component:Profile,
        meta:{
            isShowFooter:true
            
        }
    },
    {
        path:'/login',
        component:Login,
        meta:{
            isShowFooter:false
            
        }
    },
    {
        path:'/',
        redirect: "/msite"
    },
    {
        path: '/shop/:id',
        props:true,
        component: Shop,
        children: [
          {
            path: 'goods',
            component: ShopGoods
          },
          {
            path: 'ratings',
            component: ShopRatings
          },
          {
            path: 'info',
            component: ShopInfo
          },
          {
            path: '',
            redirect: 'goods'
          }
        ]
      }
      
 ]